import sys, os
sys.path.append(os.path.normpath('./lib'))

from spoiled.cli.devices import IOSDevice
from spoiled.cli.transport import SSHTransport, TelnetTransport, LoginError

dev = IOSDevice(transport = SSHTransport)
try:
  dev.connect("192.168.1.1", 'admin', 'shu78m')
except LoginError, (inst):
  print "Could not login: %s" % inst.value
  sys.exit()
print dev.get_tech_support()
dev.disconnect()

